<?php

class ActionConfig {

	public $id;

	public $clzName;

	public $filters;

	public $results;

	public function toXml(){

		$outXml = "<action id=\"{$this->id}\" class=\"{$this->clzName}\">";

		foreach($this->filters as $filter){
			$outXml .= "<filter id=\"$filter\"/>";
		}

		foreach($this->results as $result){
			$outXml .= $result->toXml();
		}

		$outXml .= "</action>";
		return $outXml;
	}

}

